import gradio as gr
from main_function import demo as main_demo
from wordcloud_function import demo as wc_demo

# 合并两个 Gradio 界面
combined_demo = gr.TabbedInterface(
    [main_demo, wc_demo],
    ["日志分析与搜索", "词云图生成"]
)

if __name__ == "__main__":
    combined_demo.launch()